package com.jyuxuan.recruitment.config.shiro;

import com.jyuxuan.recruitment.constant.RoleType;
import org.apache.shiro.authc.UsernamePasswordToken;

public class RoleToken extends UsernamePasswordToken {

    //登录类型，判断是学生登录，教师登录还是管理员登录
    private RoleType roleType;

    public RoleToken(final String username, final String password, RoleType roleType) {
        super(username, password);
        this.roleType = roleType;
    }

    public void setRoleType(RoleType loginType) {
        this.roleType = loginType;
    }

    public RoleType getRoleType() {
        return roleType;
    }

}